package xyz.csmcool.imroom.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author csmcool
 * @since 2022-08-08
 */
@TableName("sjim_rooms_user")
public class RoomsUser implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer user;

    private Integer sjimRoom;

    /**
     * Active = 1, Inactive = 2
     */
    private Integer status;

    private String typing;

    private Integer isMuted;

    private Integer unreadCount;

    private Integer isPass;

    public Integer getIsPass() {
        return isPass;
    }

    public void setIsPass(Integer isPass) {
        this.isPass = isPass;
    }

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUser() {
        return user;
    }

    public void setUser(Integer user) {
        this.user = user;
    }
    public Integer getSjimRoom() {
        return sjimRoom;
    }

    public void setSjimRoom(Integer sjimRoom) {
        this.sjimRoom = sjimRoom;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getTyping() {
        return typing;
    }

    public void setTyping(String typing) {
        this.typing = typing;
    }
    public Integer getIsMuted() {
        return isMuted;
    }

    public void setIsMuted(Integer isMuted) {
        this.isMuted = isMuted;
    }
    public Integer getUnreadCount() {
        return unreadCount;
    }

    public void setUnreadCount(Integer unreadCount) {
        this.unreadCount = unreadCount;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "RoomsUser{" +
                "id=" + id +
                ", user=" + user +
                ", sjimRoom=" + sjimRoom +
                ", status=" + status +
                ", typing='" + typing + '\'' +
                ", isMuted=" + isMuted +
                ", unreadCount=" + unreadCount +
                ", isPass=" + isPass +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
